<style>
	.main_li{display:none!important;}
</style>
<?php
$cs = Yii::app()->clientScript;
$cs->registerScriptFile(BASE_URL . '/js/jquery_plus/jquery.form.js', CClientScript::POS_END);
?>
<h2><a href="/manage/site/set">站点设置</a></h2>
<?php 
$this->beginWidget('CActiveForm', array(
	'id'			=> 'site_set_form',
	'htmlOptions' 	=> array('class'=>'setting_form'),
));
?>
	<div class="setting_nav"></div>
	<dl class="setting_content">
		<dt>基本信息</dt>
		<dd>
			<strong>站点名称：</strong>
			<?php echo YHtml::activeTextField($model, 'name', array('model'=>'Site', 'rule'=>'^.{1,50}$', 'next_focus'=>''))?>
			<p>网站名称，将在各个页面上显示</p>
		</dd>
		<dd>
			<strong>网站Logo：</strong>
			<?php 
			$this->widget('manage.widget.UploaderWidget',array(
				'pictures' 	=> isset($model['pictures'])?$model['pictures']:null,
				'mutil' 	=> false
			));
			?>
		</dd>
		<dd>
			<strong>站点提示：</strong>
			<?php echo YHtml::activeTextArea($model, 'site_info', array('model'=>'Site', 'next_focus'=>''));?>
			<p>网站提示，有值时将在网站头部展示</p>
		</dd>
		<dt>模板设置</dt>
		<dd>
			<strong>前端模板：</strong>
			<?php echo YHtml::activeDropDownList($model, 'theme_front', SiteModel::getFrontThemeOpts(), array('model'=>'Site'))?>
			<p>用户前端模板风格</p>
		</dd>
		<dd>
			<strong>后端模板：</strong>
			<?php echo YHtml::activeDropDownList($model, 'theme_manage', SiteModel::getManageThemeOpts(), array('model'=>'Site'))?>
			<p>管理后台模板风格</p>
		</dd>
		<dd>
			<strong>手机端模板：</strong>
			<?php echo YHtml::activeDropDownList($model, 'theme_mobile', SiteModel::getMobileThemeOpts(), array('model'=>'Site'))?>
			<p>手机端模板风格</p>
		</dd>
		<?php echo $this->renderPartial('../common/seo', array('model'=>$model));?>
		<dt>站点描述</dt>
		<dd>
			<?php 
			$this->widget('application.widget.EditorWidget',
				array(
					'name'	=> 'Site[desc]',
					'id'	=> 'editor_desc',
					'value' => (isset($model['desc'])?$model['desc']:''),
				)
			);
			?>
		</dd>
	</dl>
	<div class="buttons right">
		<?php echo YHtml::activeHiddenField($model, '_id', array('model'=>'Site'))?>
		<input type="button" class="button save_btn" value="保存"/>
	</div>
<?php $this->endWidget(); ?>